package com.ruoyi.framework.aspectj;

import com.ruoyi.common.annotation.MiniLogin;
import com.ruoyi.system.util.LoginUtils;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class MiniLoginAspect {
    @Before(value = "@annotation(miniLogin)")
    public void before(JoinPoint joinPoint, MiniLogin miniLogin){
         LoginUtils.getUser();
    }

}
